home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / bash / bash_110 / unixmode / src_d3.zoo / patches.zoo / built.diff next >
Encoding:
Text File  |  1991-10-30  |  2.8 KB  |  100 lines

  1. diff -c ./cd.def /home/scott/work/st-bash-1.10/src/builtins/cd.def
  2. *** ./cd.def    Thu Jul 25 15:21:40 1991
  3. --- /home/scott/work/st-bash-1.10/src/builtins/cd.def    Wed Oct 23 19:33:37 1991
  4. ***************
  5. *** 76,83 ****
  6.   
  7.         dirname = list->word->word;
  8.   
  9. !       if (path_string && !absolute_pathname (dirname))
  10. !     {
  11.         while ((path = extract_colon_unit (path_string, &index)))
  12.           {
  13.             char *dir;
  14. --- 76,102 ----
  15.   
  16.         dirname = list->word->word;
  17.   
  18. ! /**
  19. !  ** (sjk)++ If on an Atari ST give ?:* a real crack at it.
  20. !  **/
  21. ! #if defined(atarist)
  22. !       if ( dirname && (strlen(dirname)>=2) )
  23. !         if (dirname[1]==':')
  24. !           { int i = strlen(dirname);
  25. !             char *dn; dn = alloca(strlen(dirname));
  26. !             --i;
  27. !             strcpy(dn,dirname);
  28. !             if (dn[i] == '/') dn[i]='\000';
  29. !             if (chdir(dn) >= 0) 
  30. !               { strcpy(dirname,dn);
  31. !                 strcpy(the_current_working_directory,dn);
  32. !                 goto bind_and_exit;
  33. !           }
  34. !           }
  35. ! #endif
  36. !             
  37. !     if (path_string && !absolute_pathname (dirname))
  38. !     { /* Path_String && !absolute_pathname */
  39.         while ((path = extract_colon_unit (path_string, &index)))
  40.           {
  41.             char *dir;
  42. diff -c ./times.def /home/scott/work/st-bash-1.10/src/builtins/times.def
  43. *** ./times.def    Sun Aug  4 13:44:01 1991
  44. --- /home/scott/work/st-bash-1.10/src/builtins/times.def    Wed Oct 23 23:13:38 1991
  45. ***************
  46. *** 33,38 ****
  47. --- 33,45 ----
  48.   #if defined (HAVE_RESOURCE) && !defined (hpux) && !defined (USGr4)
  49.   #include <sys/time.h>
  50.   #include <sys/resource.h>
  51. + /** 
  52. +  ** (sjk)++ Add sys/times.h on an Atari ST
  53. +  **/
  54. + #if defined(atarist)
  55. + #include <stdio.h>
  56. + #include <sys/times.h>
  57. + #endif
  58.   #else /* !HAVE_RESOURCE || !hpux || !USGr4 */
  59.   #include <sys/times.h>
  60.   #endif /* !HAVE_RESOURCE || !hpux || !USGr4 */
  61. ***************
  62. *** 43,49 ****
  63.   times_builtin (list)
  64.        WORD_LIST *list;
  65.   {
  66. ! #if defined (HAVE_RESOURCE) && !defined (hpux) && !defined (USGr4)
  67.     struct rusage self, kids;
  68.   
  69.     no_args (list);
  70. --- 50,60 ----
  71.   times_builtin (list)
  72.        WORD_LIST *list;
  73.   {
  74. ! /** 
  75. !  ** (sjk)++ Adjust times builtin for Atari ST
  76. !  **/
  77. ! #if (defined (HAVE_RESOURCE) && !defined (hpux)) && !defined(atarist)
  78.     struct rusage self, kids;
  79.   
  80.     no_args (list);
  81. diff -c ./ulimit.def /home/scott/work/st-bash-1.10/src/builtins/ulimit.def
  82. *** ./ulimit.def    Tue Sep 24 22:44:25 1991
  83. --- /home/scott/work/st-bash-1.10/src/builtins/ulimit.def    Wed Oct 23 17:08:43 1991
  84. ***************
  85. *** 61,66 ****
  86. --- 61,72 ----
  87.   #if defined (HAVE_RESOURCE)
  88.   #include <sys/time.h>
  89.   #include <sys/resource.h>
  90. + /**
  91. +  ** We require some library support on the Atari ST
  92. +  **/
  93. + #if defined(atarist)
  94. + #include "../lib+/r-res.h"
  95. + #endif
  96.   #else
  97.   #include <sys/times.h>
  98.   #endif
  99.